package com.ruoyi.behindComplaint.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.behindComplaint.mapper.DocComplaintMapper;
import com.ruoyi.behindComplaint.domain.DocComplaint;
import com.ruoyi.behindComplaint.service.IDocComplaintService;

/**
 * 投诉处理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-15
 */
@Service
public class DocComplaintServiceImpl implements IDocComplaintService 
{
    @Autowired
    private DocComplaintMapper docComplaintMapper;

    /**
     * 查询投诉处理
     * 
     * @param complaintId 投诉处理主键
     * @return 投诉处理
     */
    @Override
    public DocComplaint selectDocComplaintByComplaintId(Long complaintId)
    {
        return docComplaintMapper.selectDocComplaintByComplaintId(complaintId);
    }

    /**
     * 查询投诉处理列表
     * 
     * @param docComplaint 投诉处理
     * @return 投诉处理
     */
    @Override
    public List<DocComplaint> selectDocComplaintList(DocComplaint docComplaint)
    {
        return docComplaintMapper.selectDocComplaintList(docComplaint);
    }

    /**
     * 新增投诉处理
     * 
     * @param docComplaint 投诉处理
     * @return 结果
     */
    @Override
    public int insertDocComplaint(DocComplaint docComplaint)
    {
        return docComplaintMapper.insertDocComplaint(docComplaint);
    }

    /**
     * 修改投诉处理
     * 
     * @param docComplaint 投诉处理
     * @return 结果
     */
    @Override
    public int updateDocComplaint(DocComplaint docComplaint)
    {
        return docComplaintMapper.updateDocComplaint(docComplaint);
    }

    /**
     * 批量删除投诉处理
     * 
     * @param complaintIds 需要删除的投诉处理主键
     * @return 结果
     */
    @Override
    public int deleteDocComplaintByComplaintIds(Long[] complaintIds)
    {
        return docComplaintMapper.deleteDocComplaintByComplaintIds(complaintIds);
    }

    /**
     * 删除投诉处理信息
     * 
     * @param complaintId 投诉处理主键
     * @return 结果
     */
    @Override
    public int deleteDocComplaintByComplaintId(Long complaintId)
    {
        return docComplaintMapper.deleteDocComplaintByComplaintId(complaintId);
    }
}
